package org.bloodnoteii.cloudprovider.hello.controller;

import com.alibaba.fastjson.JSONObject;
import org.bloodnoteii.cloudprovider.hello.services.HelloServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping({"/api"})
public class HelloController {

    @Autowired
    HelloServices helloServices;

    @PostMapping(value = "/v1/helloProvider")
    public JSONObject helloProvider(
           @RequestParam Integer id
    ) {
        return helloServices.helloProvider(id);
    }

}
